package unimelb.discussiontracker.twitter.web.converter;

import unimelb.discussiontracker.twitter.data.entity.TopicEntity;
import unimelb.discussiontracker.twitter.web.model.TopicItem;

public class TopicEntityToItemConverter extends AbstractListConverter<TopicEntity, TopicItem> {

    @Override
    public TopicItem convertItem(TopicEntity entity) {
        return new TopicItem(entity.getId(), entity.getText());
    }

}
